package com.note.gateway.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * 网关健康检查控制器
 * 提供Kubernetes探针检查端点
 */
@RestController
public class HealthCheckController {
    
    /**
     * 健康检查端点
     * 允许Kubernetes直接访问
     */
    @GetMapping("/k8s-health")
    public Mono<ResponseEntity<String>> healthCheck() {
        return Mono.just(ResponseEntity.ok("OK"));
    }
} 